﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Where.aspx.cs"
    Inherits="WinnerCMS.WebUI.Admin.Counter.Where" EnableViewState="false" %>

<!doctype html>
<html>
<head runat="server">
    <title>地域统计 (前20位)</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <link href="Counter.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript" src="Counter.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath">
        <tr>
            <td>
                
                <asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" Width="786px" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
        <Columns>
            <asp:BoundField DataField="where" HeaderText="地域(前20位)"></asp:BoundField>
            <asp:BoundField HeaderText="访问时间 " DataField="MaxTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="访问统计">
                <ItemStyle Width="180px" />
                <ItemTemplate>
                    <div class="Counter_Column1">
                        <div class="Counter_Column2" id="Bar<%# DataBinder.Eval(Container, "RowIndex") %>">
                        </div>
                    </div>
                    <script> PercentChange(<%# Eval("Count") %>,<%= AllCount %>,'Bar<%# DataBinder.Eval(Container, "RowIndex") %>'); </script>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="HeaderStyle" Font-Bold="True" />
    </asp:GridView>
    </form>
</body>
</html>
